package com.ee.chat.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户金币明细表
 * </p>
 *
 * @author Shane
 * @since 2019-08-23
 */
@TableName("user_coin_log")
public class UserCoinLog implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 用户id
	 */
	@TableField(value="user_id")
	private Integer userId;

	/**
	 * 消费记录id
	 */
	@TableField(value="consum_id")
	private Integer consumId;

	/**
	 * 变化类型，0-充值  1-消费  2-提现
	 */
	@TableField(value = "`type`")
	private Integer type;

	/**
	 * 变动数量
	 */
	@TableField(value = "`number`")
	private Integer number;

	/**
	 * 描述
	 */
	@TableField(value = "`desc`")
	private String desc;

	/**
	 * 
	 */
	@TableField(value="create_time")
	private Date createTime;

	public UserCoinLog() {
	}

	public UserCoinLog(Integer userId, Integer consumId, Integer type, Integer number, String desc) {
		this.userId = userId;
		this.consumId = consumId;
		this.type = type;
		this.number = number;
		this.desc = desc;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getConsumId() {
		return consumId;
	}

	public void setConsumId(Integer consumId) {
		this.consumId = consumId;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
